package com.ruoyi.qualityControl.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum QcTimeExamineStrandedSheetEnum
{
    collectDate("collectDate", "统计日期"),
    networkName("networkName", "所属网点"),
    contractArea("contractAreaName", "承包区"),
    startPickupNum("startPickupNum", "原始揽收量"),
    totalPickupNum("totalPickupNum", "总揽收量"),
    totalStrandedNum("totalStrandedNum", "总滞留量"),
    totalStrandedRate("totalStrandedRate", "总滞留率"),
    examinePickupNum("examinePickupNum", "考核揽收量"),
    examineStrandedNum("examineStrandedNum", "考核滞留量"),
    examineStrandedRate("examineStrandedRate", "考核滞留率"),
    examineAimValue("examineAimValue", "目标值"),
    examinePreStranded("examinePreStranded", "滞留预估考核"),
    examineOverFortyEightNum("examineOverFortyEightNum", "考核滞留&揽收超48h量"),
    receiveOverFortyEightNum("receiveOverFortyEightNum", "揽收超48h总量"),
    receiveOverFortyEightDeliveredNum("receiveOverFortyEightDeliveredNum", "揽收超48h已交货量"),
    receiveOverFortyEightUnDeliveredNum("receiveOverFortyEightUnDeliveredNum", "揽收超48h未交货量"),
    frontDeliveryEvaluatePassNum("frontDeliveryEvaluatePassNum", "交货及时量"),
    frontDeliveryEvaluateNotPassNum("frontDeliveryEvaluateNotPassNum", "交货延误量"),
    frontNotDeliveryNum("frontNotDeliveryNum", "未交货量"),
    stagnantTwentyFourNum("stagnantTwentyFourNum", "24小时未实操量"),
    stagnantTwentyFourRate("stagnantTwentyFourRate", "24小时未实操率"),
    detainedOrStagnantTwentyFourNum("detainedOrStagnantTwentyFourNum", "交货滞留&24小时未实操量"),
    detainedOrUnStagnantTwentyFour("detainedOrUnStagnantTwentyFour", "交货滞留&24小时未操作总考核"),
    avgFrontDeliveryDeliveryTimeUsed("avgFrontDeliveryDeliveryTimeUsed", "交货平均用时");

    private final String code;
    private final String info;

    QcTimeExamineStrandedSheetEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (QcTimeExamineStrandedSheetEnum value : QcTimeExamineStrandedSheetEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
